export const type = {
    SWITCH_MENU: 'SWITCH_MENU',
    GET_TOKEN: 'GET_TOKEN',
    SWITCH_TITLE: 'SWITCH_TITLE',
    ALERTINFO: 'alertInfo'
}

export function switchMenu(menuName) {
    return {
        type: type.SWITCH_MENU,
        menuName
    }
}

export function getToken(token) {
    return {
        type: type.GET_TOKEN,
        token
    }
}

export function switchTitle(title) {
    return {
        type: type.SWITCH_TITLE,
        title
    }
}

export function alertInfo(info) {
    return {
        type: type.ALERTINFO,
        info
    }
}